<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js"><span id='global-property-'>/**
</span> * @ignore
 * Set up editor constructor
 * @author yiminghe@gmail.com
 */
KISSY.add(&quot;editor/base&quot;, function (S, HtmlParser, Control, EditorRender) {
<span id='KISSY-Editor'>    /**
</span>     * editor component for KISSY. xclass: 'editor'.
     * @class KISSY.Editor
     * @extends KISSY.Component.Control
     */
    return Control.extend({}, {
        Config: {},

        XHTML_DTD: HtmlParser['DTD'],

        ATTRS: {

<span id='KISSY-Editor-property-textarea'>            /**
</span>             * textarea
             * @type {KISSY.NodeList}
             */
            textarea: {},

            textareaAttrs: {
                view: 1
            },

<span id='KISSY-Editor-property-iframe'>            /**
</span>             * iframe
             * @type {KISSY.NodeList}
             */
            iframe: {},

<span id='KISSY-Editor-property-window'>            /**
</span>             * iframe 's contentWindow.
             * @type {KISSY.NodeList}
             */
            window: {
                // ie6 一旦中途设置了 domain
                // 那么就不能从 document getWindow 获取对应的 window
                // 所以一开始设置下，和 document 有一定的信息冗余
            },

<span id='KISSY-Editor-property-document'>            /**
</span>             * iframe 's document
             * @type {KISSY.NodeList}
             */
            document: {},

<span id='KISSY-Editor-property-toolBarEl'>            /**
</span>             * toolbar element
             * @type {KISSY.NodeList}
             */
            toolBarEl: {},

<span id='KISSY-Editor-property-statusBarEl'>            /**
</span>             * status bar element
             * @type {KISSY.NodeList}
             */
            statusBarEl: {},

            handleMouseEvents: {
                value: false
            },

            focusable: {
                value: false
            },

<span id='KISSY-Editor-property-mode'>            /**
</span>             * editor mode.
             * wysiswyg mode:1
             * source mode:0
             * Defaults to: wysiswyg mode
             */
            mode: {
                view:1,
                value: 1
            },

<span id='KISSY-Editor-property-data'>            /**
</span>             * Current editor's content
             * @type {String}
             */
            data: {
                view: 1
            },

<span id='KISSY-Editor-property-customStyle'>            /**
</span>             * Custom style for editor.
             * @type {String}
             */
            customStyle: {
                value: &quot;&quot;
            },

<span id='KISSY-Editor-property-customLink'>            /**
</span>             * Custom css link url for editor.
             * @type {String[]}
             */
            customLink: {
                value: []
            },

            xrender: {
                value: EditorRender
            }
        },

        xclass: 'editor'
    });
}, {
    requires: ['html-parser', 'component/control', './render']
});</pre>
</body>
</html>
